package com.hy.wsroom.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum MessageTypeEnum {
    CHAT("CHAT", "聊天消息"),
    ROOM_CHAT("ROOM_CHAT", "聊天消息-房间"),
    JOIN("JOIN", "加入房间"),
    LEAVE("LEAVE", "离开房间"),
    CLIENT_BROADCAST("CLIENT_BROADCAST", "用户消息广播"),
    ERROR("ERROR", "错误消息"),
    HEARTBEAT("HEARTBEAT", "心跳消息"),
    UNSUPPORTED("UNSUPPORTED", "不支持的消息类型"),
    ;

    private String type;
    private String message;

    MessageTypeEnum(String type) {
        this.type = type;
    }
}
